﻿@model IEnumerable<AskpldtUHW.Models.SSC>
<style>
.address{
width:400px;
font-size:14px;
}

.contnumber {
width: 200px;
font-size:14px;
}
</style>
@{
    WebGrid webGrid = new WebGrid(canSort: false, canPage: true, rowsPerPage: 100, ajaxUpdateContainerId: "grid");
    webGrid.Bind(Model, autoSortAndPage: true, rowCount: Model.Count());
}


<div class="view_detail">
    <div id="grid">
        @webGrid.GetHtml(htmlAttributes: new { id = "grid" },
        alternatingRowStyle: "altrow",
        mode: WebGridPagerModes.All,
                columns: webGrid.Columns(
                    webGrid.Column("address", "Address", style: "address", format: @<label>@item.address</label>),
                    webGrid.Column("contactnumber", "Contact number", style: "contnumber", format: @<label>@item.contactnumber</label>)
                ))
    </div>
</div>

